<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
require_once (APPPATH . 'controllers/LISTENER.php');

class Videochat extends CI_Controller {
    function __construct() {
        parent::__construct();
       
    }

    public function index() {
       $this->load->view('header');
       $this->load->view('videochat');
       $this->load->view('footer');
    }
    
    public function loaddata() {
        $arr = array();
        for ($i = 1; $i< 12; $i++) {
            $result['id'] = $i;
            $result['name'] = 'Name '.$i;
            $result['desc'] = 'This is description '.$i;
            array_push($arr, $result);
        }
        $json = json_encode($arr);
        echo $json;
    }
}

?>
